package com.gws.ievent.scheduler.timewheel;


/**
 * @author song
 * @date 2022/10/26 12:47
 */
public class Bucket {

    public Bucket prev;
    public Bucket next;

    /**
     * 轮次
     */
    public long round;

    /**
     * 任务
     */
    public Task task;


    public Bucket(long round, Task task) {
        this.round = round;
        this.task = task;
    }

    public void decrRound() {
        --this.round;
    }

}
